import Request from "../utils/request"

const request = new Request().http

export function getSchoolList(data) {
  return request({
    url: "api/school/school/getSchoolList", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}

export function getSchoolDetail(data) {
  return request({
    url: "api/school/school/getSchoolDetail", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}
// 获取省市区列表
export function getRegion(data) {
  return request({
    url: "api/school/school/getRegion", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}

// 新增分校
export function addSchool(data) {
  return request({
    url: "api/school/school/addSchool", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}

// 编辑分校
export function editSchool(data) {
  return request({
    url: "api/school/school/editSchool", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}

//删除分校
export function delSchool(data) {
  return request({
    url: "api/school/school/delSchool", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}

//充值
export function rechargeSchool(data) {
  return request({
    url: "api/school/school/rechargeSchool", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}

//充值记录
export function getSchoolHourLog(data) {
  return request({
    url: "api/school/school/getSchoolHourLog", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}

//获取分校认证数据
export function getSchoolAuthenticationData(data) {
  return request({
    url: "api/school/school/getSchoolAuthenticationData", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}

//分校认证
export function AuthenticationSchool(data) {
  return request({
    url: "api/school/school/AuthenticationSchool", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}
